#!/usr/bin/python3
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-

import sys
import mrget
import strict_hwcfg
sys.path.append('/usr/lib64/fpemud-os-sysman')
from helper_pkg_warehouse import PkgWarehouse
from helper_pkg_warehouse import PkgMerger


mrget.init(system_or_user=True)

maintPkgSets = PkgWarehouse().getMaintPkgSets()
PkgMerger(strict_hwcfg.probe()).doEmerge("-1 -uDN --with-bdeps=y @world @preserved-rebuild %s" % (" ".join(maintPkgSets)))
print("")
